A Theory of Staged Composition Synthesis ( Extended Version )
نویسندگان
چکیده
Composition synthesis is based on the idea of using inhabitation in combinatory logic with intersection types as a foundation for computing compositions from component repositories. Components implemented in a language L1 are exposed to composition synthesis in the form of typed combinator symbols. In practice, it is useful to augment the collection of components in the implementation language L1 with a collection of components implemented in a metalanguage L2 in order to define, e.g., higher-level (possibly application specific) composition operators and combinators that manipulate L1-code templates. By extending composition synthesis to encompass both object language (L1) and metalanguage (L2) combinators, composition synthesis becomes a powerful and flexible framework for the generation of L1-program compositions. In this report a framework for composition synthesis is provided, in which the execution of synthesized programs can be staged into composition-time code generation (L2) and run-time execution (L1). A system of modal intersection types is introduced into a combinatory composition language to control the distinction between L1and L2-combinators at the type level, thereby exposing the language distinction to composition synthesis. We provide a theory of correctness of the framework which ensures that generated compositions of component implementations are well typed and that their execution can be staged such that all metalanguage combinators can be computed away completely at composition time (stage 1), leaving only well typed L1-code for later run-time execution (stage 2). Our framework has been implemented, and we report on experiments. This is an extended version of the corresponding conference paper. In particular we present proofs for the main results. Furthermore, the appendix includes a detailed discussion of experiments.
منابع مشابه
Validation study of the extended theory of reasoned action questionnaire for drug abuse prevention in adolescents
The aim of this study was to design and assess the validity and reliability of the theory of reasoned action extended version questionnaire for drug abuse avoidance in Iranian male adolescents. Validity and reliability of a measure consisting of TRA and self efficacy construct for substance abuse avoidance was assessed by scientific methods. Cross-sectional data was collected via self-admini...
متن کاملAn extended hesitant group decision-making technique based on the prospect theory for emergency situations
Throughout the present manuscript, we are going to introduce a novel group emergency decision-making technique in which the application of prospect theory explains the psychological behaviour of the decision maker who is affected by the hesitancy and uncertainty of cognition in decision making problems.\Instead of usual aggregation procedure, we implement here a new fusion technique that ...
متن کاملThe Church problem for expansions of (N, <) by unary predicates
For a two-variable formula B(X,Y) of Monadic Logic of Order (MLO) the Church Synthesis Problem concerns the existence and construction of a finite-state operator Y=F(X) such that B(X,F(X)) is universally valid over Nat. Büchi and Landweber (1969) proved that the Church synthesis problem is decidable. We investigate a parameterized version of the Church synthesis problem. In this extended versio...
متن کاملDecidable Extensions of Church's Problem
For a two-variable formula B(X,Y) of Monadic Logic of Order (MLO) the Church Synthesis Problem concerns the existence and construction of a finite-state operator Y=F(X) such that B(X,F(X)) is universally valid over Nat. Büchi and Landweber (1969) proved that the Church synthesis problem is decidable. We investigate a parameterized version of the Church synthesis problem. In this extended versio...
متن کاملStaged Composition Synthesis
A framework for composition synthesis is provided in which metalanguage combinators are supported and the execution of synthesized programs can be staged into composition-time code generation (stage 1) and run-time execution (stage 2). By extending composition synthesis to encompass both object language (L1) and metalanguage (L2) combinators, composition synthesis becomes a powerful and flexibl...
متن کامل